//
//  NvTimelineImageUtils.h
//  SDKDemo
//
//  Created by shizhouhu on 2018/7/9.
//  Copyright © 2018年 meishe. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NvsTimeline.h"
#import "NvTimelineDataModel.h"

@interface NvTimelineImageUtils : NSObject

/*
 * 根据时间点获取时间线上某帧图片
 */
+ (UIImage *)getImageWithTime:(NvsTimeline *)timeline time:(int64_t)time;

/*
 * 根据片段信息获取该片段的首帧图片
 */
+ (UIImage *)getImageWithClipInfo:(NvsTimeline *)timeline clipInfo:(NvEditDataModel *)clipInfo;

/*
 * 根据片段信息获取该片段的首帧图片,可以传比例
 */
+ (UIImage *)getImageWithClipInfo:(NvsTimeline *)timeline clipInfo:(NvEditDataModel *)clipInfo proxyScale:(const NvsRational *)proxyScale;
@end
